package Class.Advance.MethodReference.Practise.ComprehensivePractise;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class String2Student {
    public static void main(String[] args) {
        List<String> strList = new ArrayList<>();
        Collections.addAll(strList, "Jack-10", "Alic-25", "Nick-40", "Black-90");
        strList.stream()
                .map(Student::new).
                forEach(System.out::println);
    }
}
